package com.cykj.mapper;

import com.cykj.pojo.PsAdmin;
import com.cykj.pojo.PsUser;
import com.cykj.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //登录
    PsUser login(@Param("acc") String acc, @Param("pwd") String pwd, @Param("code")String code);
    //注册
    int reg(@Param("user") PsUser user);
    //查询账户
    List<PsUser> selectAccount(@Param("user") PsUser user);

    //用户充值
    int recharge(@Param("vo")UserVo vo);
    //根据id查询对应账户的钱
    PsUser selectUserBalance(@Param("vo")UserVo vo);
    //用户扣钱
    int deductions(@Param("vo")UserVo vo);
    //咨询师加钱
    int addMoney(@Param("vo")UserVo vo);
}
